#ifndef __APPLICATION_H__
#define __APPLICATION_H__

class ApplicationProtocol{
public:
    virtual void applicationLauching()=0;
    virtual void applicationWillExit()=0;
};

class Application:public ApplicationProtocol{
enum{
APP_STATUS_IDLE=1,
APP_STATUS_EXIT,
};
public:
    Application();
    static Application* getInstance();
    virtual ~Application();
    int run();
private:
    static Application* g_applicationInstance;
    int m_appStatus;
};

#endif